#ifndef SENSOR_DATA_TASK_H
#define SENSOR_DATA_TASK_H

#include "main.h"
#include "cmsis_os.h"
#include "usart.h"  // 这个文件应该包含 huart2 的声明


typedef struct {
    int csb;
    float pv;
    int gs;
    int lf;
    int hw;
    int gm;
} SensorData_t;
extern UART_HandleTypeDef huart2;  // 声明 huart2 为外部变量
extern volatile uint8_t uart_tx_complete;
extern float distance;

void UART_DMA_SendString(char *str);

void vSensorDataTask(void const *argument);

#endif // SENSOR_DATA_TASK_H
